package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.RoleMembersMapper;
import com.billing.model.entity.TRoleMembers;
import com.billing.service.RoleMembersService;

@Service
public class RoleMembersServiceImpl implements RoleMembersService{
	@Resource
	private RoleMembersMapper roleMembersMapper;

	@Override
	public int insert(TRoleMembers roleMembers) {
		return roleMembersMapper.insert(roleMembers);
	}

	@Override
	public List<TRoleMembers> getRoleById(int id,String name,int status,int pageSize,int currentPage) {
		return roleMembersMapper.getRoleById(id,name,status,pageSize,currentPage);
	}

	@Override
	public int getroleNum(int id,String name,int status) {
		return roleMembersMapper.getRoleNum(id,name,status);
	}

	@Override
	public TRoleMembers getRole(String id) {
		return roleMembersMapper.getRole(id);
	}

	@Override
	public int updateRole(TRoleMembers roleMembers) {
		return roleMembersMapper.updateRole(roleMembers);
	}

}
